package com.gdou.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    private Long id;
    private String username;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")//时区问题
    private Date birthday;

    private String sex;
    private String tel;
    private Double sal; // 薪酬
    private String profession;//职业
    private String address;
    private String remark;//备注
    private Long deptId;

    private Long shipId;

    private String shipName;

    private String name;//部门名称
    private String loc;//部门地址
}
